/*
 * Copyright 2008 CSC Consulting Group under the Apache License, 
 * Version 2.0 (the "License"); you may not use this file except in 
 * compliance with the License. You may obtain a copy of the License at 
 * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable 
 * law or agreed to in writing, software distributed under the License is 
 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 * either express or implied. See the License for the specific language 
 * governing permissions and limitations under the License.
 */
package com.waw.journal.plugin.action;

import com.jivesoftware.base.User;

import com.jivesoftware.community.action.*;


/**
 * This class is the base class for the actions associated with the Fitness Journal 
 * pages.
 * This class performs one function not provided by its superclass, ViewProfile.
 * It returns the User for the TargetUser.  This assumes that these actions are
 * only visible to the logged in user and not to others viewing a User's page.
 */
public abstract class BaseJournalAction extends ViewProfile  {

	private static final long serialVersionUID = 1L;
	
    /**
     * Returns the user as the targetUser.
     * @see com.jivesoftware.community.action.ViewProfile#getTargetUser()
     */
    public User getTargetUser()
    {
    	return super.getUser();
    }
}
